#include "dominion_helpers.h"
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "rngs.h"




int cardtest3()
{
	int i;
	int seed = 1000;
	int numPlayer = 2;
	int testhand_count1, testhand_count2;
	int testactions1, testactions2;
	int handPos, choice1, choice2, choice3;
	int bonus;
	int k[10] = {village, council_room, feast, gardens, mine, remodel, smithy, adventurer, baron, great_hall};
	struct gameState G;
	int maxHandCount = 5;

	memset(&G, 0, sizeof(struct gameState));
	initializeGame(numPlayer, k, seed, &G);

	G.handCount[0] = 9;
	G.numActions = 6;
	testhand_count1 = numHandCards(&G);
	testactions1 = G.numActions;


	handPos = 1;

	cardEffect(k[0], choice1, choice2, choice3, &G, handPos, &bonus);

	testhand_count2 = numHandCards(&G);
	testactions2 = G.numActions;
	printf("Expected number is %i, Actual number is %i\n", testhand_count1, testhand_count2);
	printf("Expected actions is %i, Actual actions is %i\n", testactions1+2, testactions2);
	if(testhand_count1 == testhand_count2)
		printf("passed draw card test\n");
	else
		printf("failed draw card test\n");
	if(testactions1+2 == testactions2)
		printf("passed actions test\n");
	else
		printf("failed actions add test\n");

	return 0;
}